//
//  AttentionViewController.m
//  ProjectA_ManualGuest
//
//  Created by dingcong on 16/6/14.
//  Copyright © 2016年 丁聪. All rights reserved.
//

#import "AttentionViewController.h"
#import "CellForLogin.h"
#import "PrefixHeader.pch"
#import "LoginOfVC.h"
@interface AttentionViewController ()

@end

@implementation AttentionViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    
    [self.tableView registerClass:[CellForLogin class] forCellReuseIdentifier:@"pool1"];
    [self creatLoginView];
    self.tableView.bounces = NO;
   
}

#pragma mark - buttonOfLogin push
- (void)handleLogin:(UIButton *)button
{
    
    LoginOfVC *login = [[LoginOfVC alloc]init];
    
    [self presentViewController:login animated:YES completion:^{
        
        
    }];
    
    
    [login release];
    
    
}

#pragma mark - 登录初始页面
- (void)creatLoginView
{
    
    
    
    
    
    
}


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 1;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPat
{
    
    CellForLogin *cell  = [tableView dequeueReusableCellWithIdentifier:@"pool1"];
    
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
//    cell.selectedBackgroundView.backgroundColor = [UIColor whiteColor];
    [cell.buttonOfLogin addTarget:self action:@selector(handleLogin:) forControlEvents:UIControlEventTouchUpInside];
    return cell;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    
    
    
    return SCREEN_HEIGHT - 64 - 49;
    
    
}


@end
